<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title></title>
    [#include "/admin/include/admin_static.htm"]
    <script type="text/javascript">
        function AjaxSubmit() {
            $.ajax({
                type: "post",
                url: "${path}/admin/rbac/empCg.aspx",
                data: $("#form1").serialize(),
                dataType: "text",
                success: function (json) {
                    layui.msg(json, "${path}/admin/rbac/queryEmp.aspx");
                },
                error: function (data) {
                    layui.msg("失败");
                }
            });
        }
    </script>
</head>
<body>
<div class="main_admin_content">

    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>员工参数</legend>
    </fieldset>

    <form action="${path}/admin/rbac/empCg.aspx" name="form1" id="form1" method="post"
          onsubmit="return false">
        <table class="main_edit_table">
            <input type="hidden" name="userid" type="text" value="${(emp.id)!''}">


            <div class="layui-form-item">
                <label class="layui-form-label">用户名：</label>
                <div class="layui-input-block" style="margin-left: 150px">
                    <input name="admin_name" type="text" value="${(emp.admin_name)!''}" class="layui-input"/>
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">姓名：</label>
                <div class="layui-input-block" style="margin-left: 150px">
                    <input name="username" type="text" value="${(emp.name)!''}" class="layui-input"/>
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">密码：</label>
                <div class="layui-input-block" style="margin-left: 150px">
                    <input name="password" type="password" value="${(emp.password)!''}" class="layui-input"/>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">角色：</label>
                <div class="layui-input-block" style="margin-left: 150px">
                [@u.select list=deptlist listKey="id" listValue="name" value="${(emp.depart)!''}"  id="dept_id" name="dept_id"  class="layui-input"/]
                </div>
            </div>

            <tr>
                <td colspan="100" class="btn_td">
                    <div class="layui-btn layui-btn-small" onclick="AjaxSubmit()">确认</div>
                    <input type="button" class="layui-btn layui-btn-small" value="取消" onclick="history.back();"/>
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>



